//
//  HLButton.m
//  CommonProject
//
//  Created by 任翰林 on 16/6/13.
//  Copyright © 2016年 任翰林. All rights reserved.
//

#import "HLButton.h"

@implementation HLButton

+ (instancetype)buttonWithDict:(NSDictionary*)dict;
{

    return [[self alloc]initWithDict:dict];
  
}


- (instancetype)initWithDict:(NSDictionary *)dict;
{

    if (self = [super init]) {
        [self setUpTitleWithDict:dict];
    }

    return self;
}

- (void)setUpTitleWithDict:(NSDictionary *)dict
{

    [self setTitle:dict[@"title"] forState:UIControlStateNormal];

}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
